#pragma once
namespace Cache
{
    template<class K,class V>
    class CachePolicy
    {
    public:
        CachePolicy() = default;
        virtual ~CachePolicy() = default;

        //添加缓存的接口

        //缓存中添加Key对应的Value值
        virtual void put(K key,V value) = 0;
        //获取缓存中的key对应的值
        virtual bool get(K key, V& value) = 0;
        //删除缓存中key对应的值
        virtual bool remove(K key,V& value) = 0;
    };
} // CachePolicy